package w83b.w83bOperacionesPaso.w83bBandejaEntrada;

import java.util.HashMap;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import w83b.w83bUtilidadesComunes.W83bClsConstantes;

import es.ejie.frmk.presentacion.operacion.paso.Q70ActionPasoOP;
import es.ejie.frmk.presentacion.sesiondatos.Q70ContextoEJIE;

// TODO: Auto-generated Javadoc
/**
 * The Class W83bTablaAgrupacionesOP.java.
 *
 * @author Deusto Sistemas
 */
public class w83bBuscarDetPreavOPAction extends Q70ActionPasoOP{

	
	protected void processOP(Q70ContextoEJIE contexto, ActionErrors errores, ActionMapping mapping,
			ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
		contexto.set("strTitleKey", "comun.impugnaciones.preaviso");
		contexto.set("migas","inicio.bandejaentrada.detallepreaviso");
		HashMap mapa=new HashMap();
		String codpreaviso = request.getParameter("codSelec").split("_")[0];
		mapa.put("codpreaviso", codpreaviso);
		mapa.put("user", contexto.get(W83bClsConstantes.CONSTANTE_CONTEXTO_USUARIO));
		mapa.put("idioma", (String)contexto.get(W83bClsConstantes.CONSTANTE_CONTEXTO_IDIOMA));
		contexto.set("w83bMapaPreavisos",mapa);
	}

	protected ActionForward processForward(Q70ContextoEJIE contexto, ActionErrors errors, ActionMapping mapping, 
			ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {

		return mapping.findForward("ok");
	}

}

